package com.janchow.whisper.common.api.launch;

import com.janchow.whisper.common.api.ISayHelloService;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.io.IOException;

/**
 * Created by Jange on 2016/5/24.
 */
public class ConsumerTest {

    public static void main(String[] args) throws IOException {
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("classpath:consumer.xml");

        context.start();

        ISayHelloService sayHelloService = (ISayHelloService) context.getBean("sayHelloService");
        String hello = sayHelloService.sayHello("chin&emily");

        System.out.println(hello);

        System.in.read();
    }

}
